![]() |
SetVol |
||||
Header: | Files.h | Carbon status: | Unsupported | |
Changes the default volume and default directory using the SetVol function.
OSErr SetVol ( ConstStr63Param volName, SInt16 vRefNum );
The name of the mounted volume to set as the default volume.
A volume reference number or a working directory reference number.
If you pass a volume reference number in vRefNum or a pointer to a volume name in volName, SetVol makes the specified volume the default volume and the root directory of that volume the default directory. If you pass a working directory reference number in vRefNum, SetVol makes the specified directory the default directory, and the volume containing that directory the default volume.
A result code.
Not supported in Carbon. Not available in Carbon.
Carbon applications should use HGetVol and HSetVol to get and set the default directory. GetVol and SetVol are no longer supported and working directories are not supported.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)